package com.micro.ai.template.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description = "分类响应")
public class CategoryDTO {

    @Schema(description = "主键ID")
    private String id;

    @Schema(description = "分类ID", example = "customer_service")
    private String categoryId;

    @Schema(description = "分类名称", example = "客服助手")
    private String name;

    @Schema(description = "分类描述")
    private String description;

    @Schema(description = "父分类ID")
    private String parentCategoryId;

    @Schema(description = "排序值")
    private Integer sortOrder;

    @Schema(description = "图标", example = "headset")
    private String icon;

    @Schema(description = "分类层级")
    private Integer level;

    @Schema(description = "分类路径")
    private String path;

    @Schema(description = "是否启用")
    private Boolean enabled;

    @Schema(description = "子分类列表")
    private List<CategoryDTO> children;

    @Schema(description = "模板数量")
    private Integer templateCount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;
}

